package com.cndatacom.eweb.service.impl;

import com.cndatacom.eweb.common.PaginationModel;
import com.cndatacom.eweb.dao.IRightBitDao;
import com.cndatacom.eweb.model.RightBit;
import com.cndatacom.eweb.service.IRightBitService;

public class RightBitService implements IRightBitService {

	private IRightBitDao rightBitDao;
	
	public boolean addOrUpdateRightBit(RightBit rightBit) {
		return rightBitDao.addOrUpdateRightBit(rightBit);
	}

	public boolean deleteRightBit(RightBit rightBit) {
		return rightBitDao.deleteRightBit(rightBit);
	}

	public PaginationModel getAllRightBit(int offset, int pageSize, boolean paging) {
		return rightBitDao.getAllRightBit(offset, pageSize, paging);
	}

	public RightBit getRightBitById(int id) {
		return rightBitDao.getRightBitById(id);
	}

	public IRightBitDao getRightBitDao() {
		return rightBitDao;
	}
	public void setRightBitDao(IRightBitDao rightBitDao) {
		this.rightBitDao = rightBitDao;
	}
	

}

